import request from '../api/index'

export function detailaction(data){
    return request({
        url:'goods/detailaction',
        method:'GET',
        data
    })
}
export function addCart(data){
    return request({
        url:'/cart/addCart',
        method:'POST',
        data
    })
}

export function cartList(data){
    return request({
        url:'/cart/cartList',
        method:'GET',
        data
    })
}

export function deleteAction(data){
    return request({
        url:'/cart/deleteAction',
        method:'GET',
        data
    })
}
// 提交
export function submitAction(data){
    return request({
        url:'order/submitAction',
        method:'POST',
        data
    })
}
export function detailAction(data){
    return request({
        url:'order/detailAction',
        method:'GET',
        data
    })
}
// 收藏
export function addcollect(data){
    return request({
        url:'collect/addcollect',
        method:'POST',
        data
    })
}
